import 'package:carousel_slider/carousel_slider.dart';
import 'package:flutter/material.dart';

class HomePage extends StatelessWidget {
  const HomePage({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return CarouselSlider(
      items: [
        Image.network(
          'https://img2.baidu.com/it/u=794373345,3748545665&fm=253&fmt=auto&app=138&f=JPEG?w=889&h=500',
          fit: BoxFit.cover,
        ),
        Image.network(
          'https://img2.baidu.com/it/u=2769349348,1686026461&fm=253&fmt=auto&app=138&f=JPEG?w=1278&h=800',
          fit: BoxFit.cover,
        ),
        Image.network(
          'https://iknow-pic.cdn.bcebos.com/4e4a20a4462309f7789ada8d600e0cf3d6cad6bc',
          fit: BoxFit.cover,
        ),
        Image.network(
          'https://img0.baidu.com/it/u=3762100236,3395493919&fm=253&fmt=auto&app=120&f=JPEG?w=1422&h=800',
          fit: BoxFit.cover,
        ),
      ],
      options: CarouselOptions(height: 200, autoPlay: true),
    );
  }
}
